<%if !@file%>
  There was an error.
<%else%>
  <%@file.volumes.each do |volume|%>
    <%volume.stories.each do |story|%>
      <h2><%=story.attr('title')%></h2>
      <%story.chapters.each do |chapter|%>
        <%page = make_array(chapter["comics"]["comic"])[0]%>
        <a href="<%=webcomic_path(page.attr('id'))%>"><%=image_tag(page["thumbnails"]["small"]['__content__'])%></a>
      <%end%>
      <%end%>
  <%end%>
<%end%>
